package com.shsxt.model;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

public class SOrder {
	private String detailAddress;
	private String type;
	private String phoneNumber;
	private String supportType;
	private String robListType;
	private String orderNumber;
	private String s_Type;
	@JsonFormat(pattern="yyyy-MM-dd", timezone="GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private String orderTime;
	private String timeSlot;
	private String servicePersonal;
	private String address;
	private Float price;
	private Float realPrice;
	private String service_Price;
	private String orderState;
	private String score;
	private String evaluation;
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private String evaluationTime;
	private String realPhoneNumber;
private String redeemCode;
private String typeDetail;
private String payType;
	
	public String getPayType() {
	return payType;
}
public void setPayType(String payType) {
	this.payType = payType;
}
	public SOrder(String detailAddress, String type, String phoneNumber, String supportType, String robListType,
		String orderNumber, String s_Type, String orderTime, String timeSlot, String servicePersonal, String address,
		Float price, Float realPrice, String service_Price, String orderState, String score, String evaluation,
		String evaluationTime, String realPhoneNumber, String redeemCode, String typeDetail, String payType) {
	super();
	this.detailAddress = detailAddress;
	this.type = type;
	this.phoneNumber = phoneNumber;
	this.supportType = supportType;
	this.robListType = robListType;
	this.orderNumber = orderNumber;
	this.s_Type = s_Type;
	this.orderTime = orderTime;
	this.timeSlot = timeSlot;
	this.servicePersonal = servicePersonal;
	this.address = address;
	this.price = price;
	this.realPrice = realPrice;
	this.service_Price = service_Price;
	this.orderState = orderState;
	this.score = score;
	this.evaluation = evaluation;
	this.evaluationTime = evaluationTime;
	this.realPhoneNumber = realPhoneNumber;
	this.redeemCode = redeemCode;
	this.typeDetail = typeDetail;
	this.payType = payType;
}
	@Override
	public String toString() {
		return "SOrder [detailAddress=" + detailAddress + ", type=" + type + ", phoneNumber=" + phoneNumber
				+ ", supportType=" + supportType + ", robListType=" + robListType + ", orderNumber=" + orderNumber
				+ ", s_Type=" + s_Type + ", orderTime=" + orderTime + ", timeSlot=" + timeSlot + ", servicePersonal="
				+ servicePersonal + ", address=" + address + ", price=" + price + ", realPrice=" + realPrice
				+ ", service_Price=" + service_Price + ", orderState=" + orderState + ", score=" + score
				+ ", evaluation=" + evaluation + ", evaluationTime=" + evaluationTime + "]";
	}
	public SOrder() {
		super();
		// TODO Auto-generated constructor stub
	}
	public SOrder(String detailAddress, String type, String phoneNumber, String supportType, String robListType,
			String orderNumber, String s_Type, String orderTime, String timeSlot, String servicePersonal,
			String address, Float price, Float realPrice, String service_Price, String orderState, String score,
			String evaluation, String evaluationTime) {
		super();
		this.detailAddress = detailAddress;
		this.type = type;
		this.phoneNumber = phoneNumber;
		this.supportType = supportType;
		this.robListType = robListType;
		this.orderNumber = orderNumber;
		this.s_Type = s_Type;
		this.orderTime = orderTime;
		this.timeSlot = timeSlot;
		this.servicePersonal = servicePersonal;
		this.address = address;
		this.price = price;
		this.realPrice = realPrice;
		this.service_Price = service_Price;
		this.orderState = orderState;
		this.score = score;
		this.evaluation = evaluation;
		this.evaluationTime = evaluationTime;
	}
	public String getDetailAddress() {
		return detailAddress;
	}
	public void setDetailAddress(String detailAddress) {
		this.detailAddress = detailAddress;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getPhoneNumber() {
		return phoneNumber;
	}
	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}
	public String getSupportType() {
		return supportType;
	}
	public void setSupportType(String supportType) {
		this.supportType = supportType;
	}
	public String getRobListType() {
		return robListType;
	}
	public void setRobListType(String robListType) {
		this.robListType = robListType;
	}
	public String getOrderNumber() {
		return orderNumber;
	}
	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}
	public String getS_Type() {
		return s_Type;
	}
	public void setS_Type(String s_Type) {
		this.s_Type = s_Type;
	}
	public String getOrderTime() {
		return orderTime;
	}
	public void setOrderTime(Date xxx) {
		SimpleDateFormat myFmt=new SimpleDateFormat("yyyy-MM-dd");        
	    String orderTime= myFmt.format(xxx);
	    this.orderTime = orderTime;
	}
	public String getTimeSlot() {
		return timeSlot;
	}
	public void setTimeSlot(String timeSlot) {
		this.timeSlot = timeSlot;
	}
	public String getServicePersonal() {
		return servicePersonal;
	}
	public void setServicePersonal(String servicePersonal) {
		this.servicePersonal = servicePersonal;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public Float getPrice() {
		return price;
	}
	public void setPrice(Float price) {
		this.price = price;
	}
	public Float getRealPrice() {
		return realPrice;
	}
	public void setRealPrice(Float realPrice) {
		this.realPrice = realPrice;
	}
	public String getService_Price() {
		return service_Price;
	}
	public void setService_Price(String service_Price) {
		this.service_Price = service_Price;
	}
	public String getOrderState() {
		return orderState;
	}
	public void setOrderState(String orderState) {
		this.orderState = orderState;
	}
	public String getScore() {
		return score;
	}
	public void setScore(String score) {
		this.score = score;
	}
	public String getEvaluation() {
		return evaluation;
	}
	public void setEvaluation(String evaluation) {
		this.evaluation = evaluation;
	}
	public String getEvaluationTime() {
		return evaluationTime;
	}
	public void setEvaluationTime(Date xxx) {
		SimpleDateFormat myFmt=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");        
	    String evaluationTime= myFmt.format(xxx);
		this.evaluationTime = evaluationTime;
	}
	public String getRealPhoneNumber() {
		return realPhoneNumber;
	}
	public void setRealPhoneNumber(String realPhoneNumber) {
		this.realPhoneNumber = realPhoneNumber;
	}
	public String getRedeemCode() {
		return redeemCode;
	}
	public void setRedeemCode(String redeemCode) {
		this.redeemCode = redeemCode;
	}
	public String getTypeDetail() {
		return typeDetail;
	}
	public void setTypeDetail(String typeDetail) {
		this.typeDetail = typeDetail;
	}
	
	
	

}
